<script setup lang="ts">
import { ref } from 'vue'

const selectedKeys1 = ref(['1'])
</script>

<template>
  <a-layout-header
      class="header"
      :style="{ position: 'fixed', zIndex: 1, width: '100%', top: 0 }"
  >
    <div class="logo"/>
    <a-menu
        v-model:selectedKeys="selectedKeys1"
        theme="dark"
        mode="horizontal"
        :style="{ lineHeight: '64px' }"
    >
      <a-menu-item key="/">
        <router-link to="/">首页</router-link>
      </a-menu-item>
      <a-menu-item key="/about">
        <router-link to="/about">关于</router-link>
      </a-menu-item>
    </a-menu>
  </a-layout-header>
</template>

<style scoped>
.ant-menu-item {
  margin-right: 10px; /* 改变边距 */
}
</style>
